package io.kiki.stack.http.feign.SpringMvcContract.support;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Properties for {@link SpringEncoder}.
 */
@ConfigurationProperties("spring.cloud.openfeign.encoder")
public class FeignEncoderProperties {

    /**
     * Indicates whether the charset should be derived from the {@code Content-Type}
     * header.
     */
    private boolean charsetFromContentType = false;

    public boolean isCharsetFromContentType() {
        return charsetFromContentType;
    }

    public void setCharsetFromContentType(boolean charsetFromContentType) {
        this.charsetFromContentType = charsetFromContentType;
    }

}
